//
//  AppDelegate.m
//  Leisure
//
//  Created by Alex on 16/6/28.
//  Copyright © 2016年 蓝鸥科技有限公司西安分公司. All rights reserved.
//

#import "AppDelegate.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
    // 创建左菜单控制器
    MenuViewController *menuvc = [[MenuViewController alloc]init];
    // 设置左菜单显示的内容
    menuvc.titleArray = @[@"阅读",@"电台",@"话题",@"良品",@"收藏"];
    menuvc.vcArray = @[[ReadViewController new],[[RadioViewController alloc]initWithNibName:@"RadioViewController" bundle:nil],[TopicViewController new],[GoodsViewController new],[CollectionViewController new]];
    
    self.window.rootViewController = [[DrawViewController alloc]initWithMenuViewController:menuvc rightViewController:menuvc.vcArray[0]];
    
    [self.window makeKeyAndVisible];
    
    
    return YES;
}

- (void)applicationWillResignActive:(UIApplication *)application {
  
}

- (void)applicationDidEnterBackground:(UIApplication *)application {
   
}

- (void)applicationWillEnterForeground:(UIApplication *)application {
   
}

- (void)applicationDidBecomeActive:(UIApplication *)application {
  
}

- (void)applicationWillTerminate:(UIApplication *)application {
   
}

@end
